/**
 * 
 */
package com.snapp.util.service.db.mapping;

import java.io.Serializable;
import java.sql.PreparedStatement;

/**
 * This specification defines the required methods 
 * for a DBService Exception Handler.  This interface
 * will allow custom handlers to interact with the core
 * statement processing.
 * 
 * @author Kile
 *
 */
public abstract class TypeHandler implements Serializable{

	private static final long serialVersionUID = 2806815774312946816L;

	// get the list of classes for which to use this handler
	public abstract Class<?>[] getClasses();
	
	// this method will process the exception and add it to the statement
	public abstract void process(PreparedStatement ps, Integer index, Object objToHandle);
	
	// close or clean up
	public void close(){};
}
